{"ast":null,"code":"export const browserRouteAuth = '/auth';\nexport const browserRouteIm = '/im/';\nexport const browserRouteProfile = '/profile/';\nexport const browserRouteContacts = '/contacts/';\nexport const baseUrl = () => {\n  return `${process.env.REACT_APP_BACKEND_URL + '/api/v1/'}`;\n};\nexport const exceptionUrl = () => {\n  return baseUrl() + 'auth/';\n};\n\n/* <Security API */\nexport const signUp = () => {\n  return baseUrl() + 'auth/signUp';\n};\nexport const signIn = () => {\n  return baseUrl() + 'auth/login';\n};\nexport const logout = () => {\n  return baseUrl() + 'auth/logout';\n};\nexport const forgotPassword = () => {\n  return baseUrl() + 'auth/forgot_password/';\n};\nexport const refreshToken = () => {\n  return baseUrl() + 'auth/refresh';\n};\n/* Security API> */\n\n/* <User API */\nexport const profile = () => {\n  return baseUrl() + 'user/profile/';\n};\nexport const changeProfile = () => {\n  return baseUrl() + 'user/changeProfile/';\n};\nexport const uploadAvatar = () => {\n  return baseUrl() + 'user/uploadAvatar/';\n};\nexport const findUsers = () => {\n  return baseUrl() + 'user/find';\n};\nexport const deleteUser = () => {\n  return baseUrl() + 'user/delete';\n};\n/* User API> */\n\n/* <Contact API */\nexport const getContacts = () => {\n  return baseUrl() + 'user/getContacts/';\n};\nexport const addContact = otherUserId => {\n  return baseUrl() + 'user/addContact/' + otherUserId;\n};\nexport const acceptContact = contactId => {\n  return baseUrl() + 'user/acceptContact/' + contactId;\n};\nexport const deleteContact = contactId => {\n  return baseUrl() + 'user/delete_contact/' + contactId;\n};\n/* Contact API> */\n\n/* <ReadMessage API */\nexport const deleteReadMessages = () => {\n  return baseUrl() + 'readMessage/remove';\n};\nexport const addReadMessage = () => {\n  return baseUrl() + 'readMessage/add';\n};\n/* ReadMessage API> */\n\n/* <Message API */\nexport const deleteMessages = () => {\n  return baseUrl() + 'message/remove';\n};\nexport const addMessage = () => {\n  return baseUrl() + 'message/addMessage';\n};\nexport const updateMessage = () => {\n  return baseUrl() + 'message/updateMessage';\n};\nexport const searchMessage = () => {\n  return baseUrl() + 'message/searchMessage';\n};\n/* Message API> */\n\n/* <Membership API */\nexport const addMembershipForMultiChat = (userId, chatId) => {\n  return baseUrl() + `membership/add/userId/${userId}/chatId/${chatId}`;\n};\nexport const updateNotification = (chatId, notification) => {\n  return baseUrl() + `membership/update/chatId/${chatId}/notification/${notification}`;\n};\nexport const deleteMembership = membershipId => {\n  return baseUrl() + `membership/remove/${membershipId}`;\n};\n/* Membership API> */\n\n/* <Content API */\nexport const deleteContent = contentId => {\n  return baseUrl() + `content/remove/${contentId}`;\n};\nexport const uploadImage = () => {\n  return baseUrl() + 'content/upload/image';\n};\nexport const uploadFile = () => {\n  return baseUrl() + 'content/upload/file';\n};\n/* Content API> */\n\n/* <Chat API */\nexport const getChats = () => {\n  return baseUrl() + 'chats/';\n};\nexport const newMultiChat = () => {\n  return baseUrl() + 'chats/newMultiChat';\n};\nexport const updateMultiChat = () => {\n  return baseUrl() + 'chats/updateMultiChat';\n};\nexport const uploadAvatarForChat = chatId => {\n  return baseUrl() + `chats/uploadAvatar/${chatId}`;\n};\nexport const getChatOrNew = otherUserId => {\n  return baseUrl() + `chats/getChat/otherUser/${otherUserId}`;\n};\nexport const deleteChat = chatId => {\n  return baseUrl() + `chats/remove/${chatId}`;\n};\n/* Chat API> */","map":{"version":3,"names":["browserRouteAuth","browserRouteIm","browserRouteProfile","browserRouteContacts","baseUrl","process","env","REACT_APP_BACKEND_URL","exceptionUrl","signUp","signIn","logout","forgotPassword","refreshToken","profile","changeProfile","uploadAvatar","findUsers","deleteUser","getContacts","addContact","otherUserId","acceptContact","contactId","deleteContact","deleteReadMessages","addReadMessage","deleteMessages","addMessage","updateMessage","searchMessage","addMembershipForMultiChat","userId","chatId","updateNotification","notification","deleteMembership","membershipId","deleteContent","contentId","uploadImage","uploadFile","getChats","newMultiChat","updateMultiChat","uploadAvatarForChat","getChatOrNew","deleteChat"],"sources":["/data/messenger.client/src/routes.ts"],"sourcesContent":["export const browserRouteAuth = '/auth';\nexport const browserRouteIm = '/im/';\nexport const browserRouteProfile = '/profile/';\nexport const browserRouteContacts = '/contacts/';\n\nexport const baseUrl = () => {\n    return `${process.env.REACT_APP_BACKEND_URL + '/api/v1/'}`;\n}\n\nexport const exceptionUrl = () => {\n    return baseUrl() + 'auth/';\n}\n\n/* <Security API */\nexport const signUp = () => {\n    return baseUrl() + 'auth/signUp';\n}\n\nexport const signIn = () => {\n    return baseUrl() + 'auth/login';\n}\n\nexport const logout = () => {\n    return baseUrl() + 'auth/logout';\n}\n\nexport const forgotPassword = () => {\n    return baseUrl() + 'auth/forgot_password/';\n}\n\nexport const refreshToken = () => {\n    return baseUrl() + 'auth/refresh';\n}\n/* Security API> */\n\n/* <User API */\nexport const profile = () => {\n    return baseUrl() + 'user/profile/';\n}\n\nexport const changeProfile = () => {\n    return baseUrl() + 'user/changeProfile/';\n}\n\nexport const uploadAvatar = () => {\n    return baseUrl() + 'user/uploadAvatar/';\n}\n\nexport const findUsers = () => {\n    return baseUrl() + 'user/find';\n}\n\nexport const deleteUser = () => {\n    return baseUrl() + 'user/delete';\n}\n/* User API> */\n\n/* <Contact API */\nexport const getContacts = () => {\n    return baseUrl() + 'user/getContacts/';\n}\n\nexport const addContact = (otherUserId: string) => {\n    return baseUrl() + 'user/addContact/' + otherUserId;\n}\n\nexport const acceptContact = (contactId: string) => {\n    return baseUrl() + 'user/acceptContact/' + contactId;\n}\n\nexport const deleteContact = (contactId: string) => {\n    return baseUrl() + 'user/delete_contact/' + contactId;\n}\n/* Contact API> */\n\n/* <ReadMessage API */\nexport const deleteReadMessages = () => {\n    return baseUrl() + 'readMessage/remove';\n}\n\nexport const addReadMessage = () => {\n    return baseUrl() + 'readMessage/add';\n}\n/* ReadMessage API> */\n\n/* <Message API */\nexport const deleteMessages = () => {\n    return baseUrl() + 'message/remove';\n}\n\nexport const addMessage = () => {\n    return baseUrl() + 'message/addMessage';\n}\n\nexport const updateMessage = () => {\n    return baseUrl() + 'message/updateMessage';\n}\n\nexport const searchMessage = () => {\n    return baseUrl() + 'message/searchMessage';\n}\n/* Message API> */\n\n/* <Membership API */\nexport const addMembershipForMultiChat = (userId: string, chatId: string) => {\n    return baseUrl() + `membership/add/userId/${userId}/chatId/${chatId}`;\n}\n\nexport const updateNotification = (chatId: string, notification: boolean) => {\n    return baseUrl() + `membership/update/chatId/${chatId}/notification/${notification}`;\n}\n\nexport const deleteMembership = (membershipId: string) => {\n    return baseUrl() + `membership/remove/${membershipId}`;\n}\n/* Membership API> */\n\n/* <Content API */\nexport const deleteContent = (contentId: string) => {\n    return baseUrl() + `content/remove/${contentId}`;\n}\n\nexport const uploadImage = () => {\n    return baseUrl() + 'content/upload/image';\n}\n\nexport const uploadFile = () => {\n    return baseUrl() + 'content/upload/file';\n}\n/* Content API> */\n\n/* <Chat API */\nexport const getChats = () => {\n    return baseUrl() + 'chats/';\n}\n\nexport const newMultiChat = () => {\n    return baseUrl() + 'chats/newMultiChat';\n}\n\nexport const updateMultiChat = () => {\n    return baseUrl() + 'chats/updateMultiChat';\n}\n\nexport const uploadAvatarForChat = (chatId: string) => {\n    return baseUrl() + `chats/uploadAvatar/${chatId}`;\n}\n\nexport const getChatOrNew = (otherUserId: string) => {\n    return baseUrl() + `chats/getChat/otherUser/${otherUserId}`;\n}\n\nexport const deleteChat = (chatId: string) => {\n    return baseUrl() + `chats/remove/${chatId}`;\n}\n/* Chat API> */"],"mappings":"AAAA,OAAO,MAAMA,gBAAgB,GAAG,OAAO;AACvC,OAAO,MAAMC,cAAc,GAAG,MAAM;AACpC,OAAO,MAAMC,mBAAmB,GAAG,WAAW;AAC9C,OAAO,MAAMC,oBAAoB,GAAG,YAAY;AAEhD,OAAO,MAAMC,OAAO,GAAG,MAAM;EACzB,OAAQ,GAAEC,OAAO,CAACC,GAAG,CAACC,qBAAqB,GAAG,UAAW,EAAC;AAC9D,CAAC;AAED,OAAO,MAAMC,YAAY,GAAG,MAAM;EAC9B,OAAOJ,OAAO,EAAE,GAAG,OAAO;AAC9B,CAAC;;AAED;AACA,O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